package java67_14.score;

public class JavaAvgTest {

	public static void main(String[] args) {
		Student[] sr = new Student[30];
		for (int i = 0; i < sr.length; i++) {
			sr[i] = new Student();// !
			sr[i].java = (float) (Math.random() * 100);
		}
		Jiaowuchu jw = new Jiaowuchu();
		float avg = jw.calcAvgJava(sr);
		System.out.println("这些同学的java课程平均分是:" + avg);
	}

}
